<%@ page language="java" pageEncoding="UTF-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<c:set var="ctx" value="${pageContext.request.contextPath}"></c:set>

<!DOCTYPE html>
<html>
<head>
<!-- Standard Meta -->
<c:import url="../common/meda.jsp"></c:import>

<!-- Site Properties -->
<title>重置密码-${sysDesc}</title>
<link rel="stylesheet" type="text/css"
	href="//${static_server }/css/semantic.css">
<link rel="stylesheet" type="text/css"
	href="//${static_server }/css/common.css">

<script src="//${static_server }/js/jquery.min.js"></script>
<script src="//${static_server }/js/semantic.js"></script>
<script src="//${static_server }/js/common.js"></script>
<script src="//${static_server }/js/title_menu.js"></script>
<script>
$(document).ready(function(){
	$('.reset.pwd.form').form({
		on : 'blur',
		fields : {
			password : {
				identifier : 'pwd',
				rules : [ {
					type : 'regExp[/^(?=\\S*?[a-z])(?=\\S*?[0-9])\\S{6,}$/]',
					prompt : '密码必须由字母和数字组成！且长度不小于6位！'
				} ]
			},
			match : {
				identifier : 'rpwd',
				rules : [ {
					type : 'match[pwd]',
					prompt : '重复密码与密码不匹配！'
				} ]
			}
		}
	});
}); 
</script>
</head>
<body class="pushable">
	<c:import url="../common/title_menu.jsp"></c:import>
	<div class="pusher">
		<div id="infoheadsegment" class="ui vertical raised masthead segment">
			<div class="ui container">
				<div class="ui breadcrumb">
					<a class="section" href="http://${static_server }/"><i
						class="icon home"></i>首页</a>
					<div class="divider">/</div>
					<div class="active section">重置密码</div>
				</div>
			</div>
			<!-- content container end -->
		</div>
		<div id="infobodysegment" class="ui vertical masthead segment">
			<div class="ui container">
				<form
					class='ui  <c:if test="${not empty error }">error</c:if> reset pwd form segment'
					action="//${dynamic_server }/user/resetpwd.do" method="post">
					<input type="hidden"  name="id" value="${id }">
					<p>重置密码</p>
					<div class="field" >
	                    <div class="ui left icon input">
	                        <i class="lock icon"></i>
	                        <input type="password"  name="pwd" placeholder="请输入新密码">
	                    </div>
	                </div>
	                <div class="field" >
	                    <div class="ui left icon input">
	                        <i class="lock icon"></i>
	                        <input type="password"  name="rpwd" placeholder="请再次输入新密码">
	                    </div>
	                </div>
					<div class="ui orange submit button">确认重置</div>
					<div class="ui error message">${error }</div>
				</form>
			</div>
			<!-- content container end -->
		</div>
		<!-- schoolbodycontainer end -->
		<c:import url="../common/footer.jsp"></c:import>
	</div>
	<!-- pusher end -->
</body>
</html>